package com.study.configuration;

import java.util.function.Supplier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author tanglingyu
 * @Date: 2021/09/06/ 9:46
 * @Description
 */
@Configuration(proxyBeanMethods = true)
public class MyConf3 {

  @Bean
  public Test10 getTest10() {
    Supplier<Test10> test10Supplier = Test10::new;
    return test10Supplier.get();
  }

  static class Test10 {

    private String name = "1234";

  }

}
